package com.jimet.user;


import java.sql.Timestamp;
import com.jimet.db.JimetUserLastActionDB;
import com.jimet.objects.JimetObject;



public class JimetUserLastAction extends JimetObject
{

	private long id; 
	private long userId; 
	private long actionId; 
	private String actionCode; 
	private String actionDesc; 
	private String remoteHost; 
	private Timestamp actionTs; 

	public JimetUserLastAction(long id) throws Exception
	{
		this();
		if( id != -1 )
			this.load(id);
	}

	public JimetUserLastAction(boolean noInit){}
		
	/**
	 * The Constructer Method For The Java Bean JimetUserLastAction
	 * The constructer initializes the default values for the JimetUserLastAction object attributes
	 * 
	 * String = ""
	 * Number = -1
	 * Timestamp/Time = null
	 *
	 */	
	public JimetUserLastAction() throws Exception
	{
		this.id = -1;
		this.userId = -1;
		this.actionId = -1;
		this.actionCode = "";
		this.actionDesc = "";
		this.remoteHost = "";
		this.actionTs = null;

		setDb(JimetUserLastActionDB.class);
	}	



	/**
	 * @param id The id to set.
	 */
	public void setId(long id) 
	{
		this.id = id;
	}

	/**
	 * @param userId The userId to set.
	 */
	public void setUserId(long userId) 
	{
		this.userId = userId;
	}

	/**
	 * @param actionId The actionId to set.
	 */
	public void setActionId(long actionId) 
	{
		this.actionId = actionId;
	}

	/**
	 * @param actionCode The actionCode to set.
	 */
	public void setActionCode(String actionCode) 
	{
		this.actionCode = actionCode;
	}

	/**
	 * @param actionDesc The actionDesc to set.
	 */
	public void setActionDesc(String actionDesc) 
	{
		this.actionDesc = actionDesc;
	}

	/**
	 * @param remoteHost The remoteHost to set.
	 */
	public void setRemoteHost(String remoteHost) 
	{
		this.remoteHost = remoteHost;
	}

	/**
	 * @param actionTs The actionTs to set.
	 */
	public void setActionTs(Timestamp actionTs) 
	{
		this.actionTs = actionTs;
	}

	
	

	/**
	 * @return Returns the id .
	 */
	public long getId() 
	{
		return this.id;
	}

	/**
	 * @return Returns the userId .
	 */
	public long getUserId() 
	{
		return this.userId;
	}

	/**
	 * @return Returns the actionId .
	 */
	public long getActionId() 
	{
		return this.actionId;
	}

	/**
	 * @return Returns the actionCode .
	 */
	public String getActionCode() 
	{
		return this.actionCode;
	}

	/**
	 * @return Returns the actionDesc .
	 */
	public String getActionDesc() 
	{
		return this.actionDesc;
	}

	/**
	 * @return Returns the remoteHost .
	 */
	public String getRemoteHost() 
	{
		return this.remoteHost;
	}

	/**
	 * @return Returns the actionTs .
	 */
	public Timestamp getActionTs() 
	{
		return this.actionTs;
	}

	

}